package com.yn.service.zy;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yn.common.model.zy.DeviceRentOrderDO;
import com.yn.common.page.BasePage;
import com.yn.common.request.sc.PageParamRequest;
import com.yn.common.request.zyorder.ZyDeviceRentOrderRequest;
import com.yn.service.zy.model.dto.DeviceRentOrderDTO;
import com.yn.service.zy.model.query.DeviceRentOrderQuery;

/**
 * @ClassName: TDeviceRentOrderService
 * @Description: 设备租赁订单Service
 * @Author: ym
 * @Date: 2025/5/8 18:30
 **/
public interface DeviceRentOrderService extends IService<DeviceRentOrderDO> {

    IPage<DeviceRentOrderDTO> listPage(DeviceRentOrderQuery query, BasePage basePage);

    //设备租聘订单提交
    String saveOrder(ZyDeviceRentOrderRequest request);

    /**
     * 分页查询设备租赁订单列表
     * @param query 查询参数
     * @param pageRequest 分页参数
     * @return 设备租赁订单列表
     */
    BasePage<DeviceRentOrderDTO> listPage1(DeviceRentOrderQuery query, PageParamRequest pageRequest);
}
